package com.ideaaedi.springcloud.jd.commonspring.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ideaaedi.springcloud.jd.commonds.entity.user.po.SysDictPO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.req.SysDictListReqVO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.req.SysDictTreeReqVO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.resp.SysDictListRespVO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.resp.SysDictTreeRespVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统-数据字典 Mapper 接口
 * </p>
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 2021.0.1.A
 */
@Mapper
public interface SysDictMapper extends BaseMapper<SysDictPO> {
    
    /**
     * 查询字典
     *
     * @param page 分页信息
     * @param req 请求参数
     *
     * @return 字典列表
     */
    IPage<SysDictListRespVO> selectDictForList(IPage<?> page, @Param("req") SysDictListReqVO req);
    
    /**
     * 查询字典
     *
     * @param req 请求参数
     *
     * @return 字典列表
     */
    List<SysDictTreeRespVO> selectDictForTree(@Param("req") SysDictTreeReqVO req);
}
